import 'dart:convert';

import 'package:largefriends/entity/json/json_parse_utils.dart';

class LfAttachmentEntity {
  LfAttachmentEntity({
    this.id,
    this.url,
  });

  factory LfAttachmentEntity.fromJson(Map<dynamic, dynamic> jsonRes) =>
      LfAttachmentEntity(
          id: jsonRes.asString('id'), url: jsonRes.asString('url'));

  String? id;
  String? url;
  @override
  String toString() {
    return jsonEncode(this);
  }

  Map<String, dynamic> toJson() => <String, dynamic>{
        'id': id,
        'url': url,
      };
}
